package com.atguigu.springcloud.controller;


import com.guigu.springcloud.entities.CommonResult;
import com.guigu.springcloud.entities.Payment;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.UUID;

/**
 * @Date 2021/7/23 9:24
 * @Created by wangle
 * @Description
 */
@Slf4j
@RestController
public class PaymentController {



//    端口显示
    @Value("${server.port}")
    private  String serverPort;

    @GetMapping("/payment/zk")
    public String zookdiscover(){

        return  "springcloud with zookper :"+serverPort+"\t"+ UUID.randomUUID().toString();

    }


}
